import request from '@/utils/request'

// 查询店铺用户列表
export function listShopShop(query) {
    return request({
        url: '/shop/shopShop/list',
        method: 'get',
        params: query
    })
}

// 查询店铺用户详细
export function getShopShop(suserId) {
    return request({
        url: '/shop/shopShop/' + suserId,
        method: 'get'
    })
}

// 新增店铺用户
export function addShopShop(data) {
    return request({
        url: '/shop/shopShop',
        method: 'post',
        data: data
    })
}

// 修改店铺用户
export function updateShopShop(data) {
    return request({
        url: '/shop/shopShop',
        method: 'put',
        data: data
    })
}

// 删除店铺用户
export function delShopShop(suserId) {
    return request({
        url: '/shop/shopShop/' + suserId,
        method: 'delete'
    })
}

// 导出店铺用户
export function exportShopShop(query) {
    return request({
        url: '/shop/shopShop/export',
        method: 'get',
        params: query
    })
}